<?php
namespace App\Modules\Company;

use App\Modules\AdapterApi;
use App\Services\Company\CompanyIndex;

class Company extends AdapterApi
{

    //添加公司
    public function addCompany(){
//        $data = pick_array($this->postData, ['name', 'description',
//            'pic_id', 'relative_path', 'absolute_path', 'jump_url',
//            'add_user_id', 'auditor_id','start_time',
//            'end_time','status','order','audit_status','c_id']);
        $data = $this->postData;
        return CompanyIndex::Company()->addCompany($data);
    }

    //公司列表
    public function companyList(){
        return CompanyIndex::Company()->companyList();
    }

    //公司详情
    public function companyDetail(){
        $data = $this->postData;
        return CompanyIndex::Company()->companyDetail($data);
    }

    //修改公司
    public function updateCompany(){
        $data = $this->postData;
        return CompanyIndex::Company()->updateCompany($data);
    }


}